package com.lllmark.lllmarkDemo.constans;

import net.bytebuddy.NamingStrategy;

/**
 * @author yuxiangZhang
 * @data 2024/5/11
 */
public class Constans {

    // 成功响应码
    public static final Integer SUCCESS_CODE = 200;

    // 失败响应码
    public static final Integer FAILED_CODE = 500;

    // 访问失败描述
    public static final String FAILED_MESSAGE = "服务器错误, 请稍后重试";

    public static final Integer USER_ID_LENGTH_DEFAULT = 32;

    // 存放文件的文件夹
    public static final String FILE_FOLDER_FILE = "/file/";

    // 存放头像文件夹
    public static final String FILE_FOLDER_AVATAR_NAME = "avatar/";

    // 默认头像
    public static final String AVATAR_DEFUALT = "default_avatar.jpg";

    // 头像文件类型
    public static final String AVATAR_SUFFIX = ".jpg";

    // 设置媒体类型
    public static final String CONTENT_TYPE = "Content-Type";
    // 设置数据编码格式
    public static final String CONTENT_TYPE_VALUE = "application/json;charset=UTF-8";

    // redis相关
    // redis 用户信息过期时间 默认30分钟
    public static final Integer REDIS_KEY_EXPIRES_30_MIN = 30*60;

    // redis结构
    public static final String REDIS_KEY_USER_INFO = "lamuda:user:";

    // redis哈希数据结构
    public static final String REDIS_KEY_HASH = "lamuda:demo:hash:";

    // redis列表数据结构
    public static final String REDIS_KEY_LIST = "lamuda:demo:list:";

    // redis无序集合数据结构
    public static final String REDIS_KEY_SET = "lamuda:demo:set:";

    // redis 有序集合数据结构
    public static final String REDIS_KEY_ZSET = "lamuda:demo:zset:";


}
